<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * MAPI COA Project
 * form.php
 * @author ranuandra
 *
 * 24 Jul 2011
 * tags
 */
echo Form::open(URL::base().'coa/save', array('id'=>'validateform'));
echo Form::hidden('id', $data->coa->id, array());
echo Form::hidden('productspec_id', $data->id, array());
?>
<div class="title">Data Product</div>
<div>

<div class="title_header">Product Specification</div>
<table cellspacing="0" cellpadding="0" class="form_content">
	<tr>
		<td class="form_label">Product Name</td>
		<td>:</td>
		<td class="form_field"><?php echo $data->product->product_name;?></td>
		<td></td>
	</tr>
	<tr>
		<td class="form_label">Customer Name</td>
		<td>:</td>
		<td class="form_field"><?php echo $data->customer->name;?></td>
		<td></td>
	</tr>
	<tr>
		<td class="form_label">Charge Id</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('charge_id', $form['charge_id'], array())?></td>
		<td><?php echo $data->coa->charge_id;?></td>
	</tr>
	<tr>
		<td class="form_label">Cu</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('cu', $form['cu'], array())?></td>
		<td><?php echo $data->cu;?></td>
	</tr>
	<tr>
		<td class="form_label">Si</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('si', $form['si'], array())?></td>
		<td><?php echo $data->si;?></td>
	</tr>
	<tr>
		<td class="form_label">Fe</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('fe', $form['fe'], array())?></td>
		<td><?php echo $data->fe;?></td>
	</tr>
	<tr>
		<td class="form_label">Zn</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('zn', $form['zn'], array())?></td>
		<td><?php echo $data->zn;?></td>
	</tr>
	<tr>
		<td class="form_label">Mn</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('mn', $form['mn'], array())?></td>
		<td><?php echo $data->mn;?></td>
	</tr>
	<tr>
		<td class="form_label">Mg</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('mg', $form['mg'], array())?></td>
		<td><?php echo $data->mg;?></td>
	</tr>
	<tr>
		<td class="form_label">Ni</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('ni', $form['ni'], array())?></td>
		<td><?php echo $data->ni;?></td>
	</tr>
	<tr>
		<td class="form_label">Ti</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('ti', $form['ti'], array())?></td>
		<td><?php echo $data->ti;?></td>
	</tr>
	<tr>
		<td class="form_label">Pb</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('pb', $form['pb'], array())?></td>
		<td><?php echo $data->pb;?></td>
	</tr>
	<tr>
		<td class="form_label">Sn</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('sn', $form['sn'], array())?></td>
		<td><?php echo $data->sn;?></td>
	</tr>
	<tr>
		<td class="form_label">Cr</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('cr', $form['cr'], array())?></td>
		<td><?php echo $data->cr;?></td>
	</tr>
	<tr>
		<td class="form_label">Ca</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('ca', $form['ca'], array())?></td>
		<td><?php echo $data->ca;?></td>
	</tr>
	<tr>
		<td class="form_label">Bi</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('bi', $form['bi'], array())?></td>
		<td><?php echo $data->bi;?></td>
	</tr>
	<tr>
		<td class="form_label">Pbe</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('pbe', $form['pbe'], array())?></td>
		<td><?php echo $data->pbe;?></td>
	</tr>
	<tr>
		<td class="form_label">Cd</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('cd', $form['cd'], array())?></td>
		<td><?php echo $data->cd;?></td>
	</tr>
	<tr>
		<td class="form_label">Al</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('al', $form['al'], array())?></td>
		<td><?php echo $data->al;?></td>
	</tr>
	<tr>
		<td class="form_label">H2Gas</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('h2gas', $form['h2gas'], array())?></td>
		<td><?php echo $data->h2gas;?></td>
	</tr>
	<tr>
		<td class="form_label">Sludge</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('sludge', $form['sludge'], array())?></td>
		<td><?php echo $data->sludge;?></td>
	</tr>
	<tr>
		<td class="form_label">KValues</td>
		<td>:</td>
		<td class="form_field"><?php echo Form::input('kvalues', $form['kvalues'], array())?></td>
		<td><?php echo $data->kvalues;?></td>
	</tr>
</table>
<table cellspacing="0" cellpadding="0" class="form_content">
	<tr>
		<td class="form_label"></td>
		<td></td>
		<td class="form_field"><?php echo Form::submit('submit', 'Save')?></td>
	</tr>
</table>
</div>
<?php 
	Form::close();
?>